package com.web44.springboot.filter;

import jakarta.servlet.FilterChain;
import jakarta.servlet.ServletException;
import jakarta.servlet.ServletRequest;
import jakarta.servlet.ServletResponse;
import jakarta.servlet.http.HttpFilter;
import lombok.extern.slf4j.Slf4j;

import java.io.IOException;

/**
 * @Title: HelloFilter
 * @Description:
 * @Auther: py
 * @Version: 1.0
 * @create 2024/2/29 15:19
 */
@Slf4j
public class HelloFilter extends HttpFilter {

    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
        log.info("我是过滤器。。。。。。");
        chain.doFilter(request,response);
    }
}
